#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

"""
max = 123


def f1():
    # global max
    max = 12321
    print(max)


f1()
print(max)  # 12321
"""

min = "最小值"


def f2():
    min = "f2里头的"

    def f3():
        nonlocal min
        min = "f3里的"
        print("*" * 10, min)

    def f4():
        print(min)
    f3()
    f4()
    print(min)


f2()
print(min)
